import request from '@/utils/request'
// const baseURL = process.env.VUE_APP_AMAZON_API
const baseURL = '/amazon'

export function login(data) {
  return request({
    url: '/vue-element-admin/user/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: `listing/base/get_user_info`,
    method: 'get',
    baseURL
  })
}

export function logout(token) {
  return request({
    url: '/listing/base/logout',
    method: 'get',
    headers: {
      Authorization: token
    },
    baseURL
  })
}
